package com.agv.backend.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TableDataInfo {
    private Long total;
    private List<?> rows;
    private String code;
    private String msg;

    public static TableDataInfo of(Long total, List<?> rows, String code, String msg) {
        return new TableDataInfo(total, rows, code, msg);
    }
}
